<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/admin.css" />
	<script type='text/javascript' src='__PUBLIC__/js/jquery.min.js'></script>
	<script type='text/javascript' src='__PUBLIC__/layer/layer.js'></script>
	<script type='text/javascript' src='__PUBLIC__/admin/js/common.js'></script>
    <title>后台管理</title>
</head>
<body>
<div class="main-container clearfix"><div class="main-content"><div class="inner"><div class="mall-manage">
    <div class="comm-list" style="min-height:600px">
        <div class="comm-top">
            <h4 style="margin-bottom:0"><{:$vo['id'] ? '修改' : '添加'}>文案</h4>
            <div class="add_page_top"></div>
        </div>
        <form id="memberform" onsubmit="return false;">
            <input type="hidden" name="info[id]" value="<{$vo.id}>" />
            <div class="shop_sort_box">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>今日提醒：</h4></div>
                    <div class="shop_sort_set">
                        <textarea class="shop_sort_text" style="height:150px;" name="info[notice]"><{$vo.notice}></textarea>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>血压文案：</h4></div>
                    <div class="shop_sort_set">
                        <textarea class="shop_sort_text" style="height:150px;" name="info[blood]"><{$vo.blood}></textarea>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>体重文案：</h4></div>
                    <div class="shop_sort_set">
                        <textarea class="shop_sort_text" style="height:150px;" name="info[weight]"><{$vo.weight}></textarea>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4>饮水文案：</h4></div>
                    <div class="shop_sort_set">
                        <textarea class="shop_sort_text" style="height:150px;" name="info[drink]"><{$vo.drink}></textarea>
                    </div>
                </div>
                <div style="height:10px;"></div>
                <div class="shop_sort">
                    <div class="shop_sort_title">
                        <h4>&nbsp;</h4>
                    </div>
                    <div class="shop_sort_set">
                        <span onclick="save(this);return false" id="saveBtn" class="btngreen30">完成</span>
                        &nbsp;&nbsp;&nbsp;
                        <span onclick="history.go(-1);" class="btngray30">返回</span>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div></div></div></div>
<script>
function save(obj){
    $.post('<{:U("edit")}>',$('#memberform').serialize(),function(res){
        res=$.trim(res);
        if(res=='suc'){
            note_info('保存成功！',obj);
        }else{
            note_info('保存失败或未改动',obj,'warn');
        }
    })
}
</script>